package org.demo.patten.prototype;


import lombok.Getter;
import lombok.Setter;

/**
 * @author zhuj
 * @date 2025/3/21
 * @apiNote
 */
@Getter
@Setter
public class Resume implements Cloneable {
    private String name;
    private int age;
    private String experience;
    public Resume(String name, int age, String experience) {
        this.name = name;
        this.age = age;
        this.experience = experience;
    }
    @Override
    public Resume clone() {
        try {
            return (Resume) super.clone(); // 浅拷贝
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }
}
